{%extends "MssaeSeoBundle::layout.html.twig"%}
{%block javascript%}
        {%javascripts
            '@MssaeSeoBundle/Resources/public/js/*'
            '@MssaeSeoBundle/Resources/public/js/jquery-1.7.2.min.js'
            '@MssaeSeoBundle/Resources/public/js/ProjetAnnuaire/ProjetAnnuaire.js'
            '@MssaeSeoBundle/Resources/public/js/jPages.min.js'
            '@MssaeSeoBundle/Resources/public/js/smartpaginator.js'
        %}
            <script src="{{asset_url}}"></script>
        {%endjavascripts%} 
{%endblock%}
{%block body%}
        <h1>Inscription sur annuaire</h1>
    {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}

        {% include "MssaeSeoBundle:ProjetAnnuaire:annuaireTemplate.html.twig"%}
        
        {%block formulaire%}
            <div>
                <form action="{{ path('projetannuaire_create', {'idProject' : idProject }) }}" method="post" {{ form_enctype(form) }}>
                    {{ form_widget(form) }}
                        <input id = "idAnnuaire" name="idAnnuaire" type="hidden" value=""/>
                    <p>
                        <button type="submit">Create</button>
                    </p>
                </form>
            </div>
        {%endblock formulaire%}
    {%endif%}   
   <ul class="record_actions">
        <li>
            <a href="{{ path('projetannuaire', {'idProject' : idProject }) }}">
                Back to the list
            </a>
        </li>
    </ul>
{%endblock%}